package com.xiaoq.distribution.entity;

import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;

import java.io.Serializable;

/**
 * Created by chenjh on 2018/5/24.
 * 票务结算
 */
@Entity(value="ticket_settle",noClassnameStored=true)
public class TicketSettleEntity extends MongoEntity implements Serializable {
    private static final long serialVersionUID = 6099742549814505314L;

    private String settleHistoryId;

    private String shopOrderId;
    private Integer orderState; //小店订单状态  @see OrderState.java
    private Integer payState; //支付状态, @see PayState.java
    private Long useTime; //
    private Integer number;
    private String idCard;
    private String ticketCode;
    private Double refundAmount;

    /*** 预售价格*/
    private Long prePrice;
    /*** 结算价格 */
    private Double settleMoney;
    /*** 下单价格 */
    private Double totalAmount;
    /*** 下单时间*/
    private Long createTime;
    /*** 退款时间*/
    private Long refundTime;

    /*** 分销商id */
    private String distributorId;
    private String ticketId;
    private String ticketName;

    /*** 销售的第几张票 */
    private Long saleCountIndex;

    /*** 结算状态  */
    private Integer settleStatus;

    /**
     * 结算类型 (核销(使用)结算， 下单结算)
     */
    private String settleType;

    /*** 结算时间  */
    private Long settleTime;

    /*** 退款结算时间*/
    private Long refundSettleTime;

    public String getDistributorId() {
        return distributorId;
    }

    public void setDistributorId(String distributorId) {
        this.distributorId = distributorId;
    }

    public String getShopOrderId() {
        return shopOrderId;
    }

    public void setShopOrderId(String shopOrderId) {
        this.shopOrderId = shopOrderId;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public Long getUseTime() {
        return useTime;
    }

    public void setUseTime(Long useTime) {
        this.useTime = useTime;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getTicketCode() {
        return ticketCode;
    }

    public void setTicketCode(String ticketCode) {
        this.ticketCode = ticketCode;
    }

    public Double getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(Double refundAmount) {
        this.refundAmount = refundAmount;
    }

    public Long getPrePrice() {
        return prePrice;
    }

    public void setPrePrice(Long prePrice) {
        this.prePrice = prePrice;
    }

    public Double getSettleMoney() {
        return settleMoney;
    }

    public void setSettleMoney(Double settleMoney) {
        this.settleMoney = settleMoney;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(Long refundTime) {
        this.refundTime = refundTime;
    }

    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public Long getSaleCountIndex() {
        return saleCountIndex;
    }

    public void setSaleCountIndex(Long saleCountIndex) {
        this.saleCountIndex = saleCountIndex;
    }

    public Integer getSettleStatus() {
        return settleStatus;
    }

    public void setSettleStatus(Integer settleStatus) {
        this.settleStatus = settleStatus;
    }

    public String getSettleType() {
        return settleType;
    }

    public void setSettleType(String settleType) {
        this.settleType = settleType;
    }

    public Long getSettleTime() {
        return settleTime;
    }

    public void setSettleTime(Long settleTime) {
        this.settleTime = settleTime;
    }

    public Long getRefundSettleTime() {
        return refundSettleTime;
    }

    public void setRefundSettleTime(Long refundSettleTime) {
        this.refundSettleTime = refundSettleTime;
    }

    public String getSettleHistoryId() {
        return settleHistoryId;
    }

    public void setSettleHistoryId(String settleHistoryId) {
        this.settleHistoryId = settleHistoryId;
    }
}
